/**
 * Created by HUANGFR2 on 8/19/2016.
 */
var mongoose = require('mongoose');
var ComplaintSchema = new mongoose.Schema({
    _id: String,
    c_id: {
        type : String,
        required : 'c_id is required'
    },
    createDate: {
        type: Date,
        default: Date.now
    },
    status: {
        type: Number,
        default: 0
    },
    //merchant: {
    //    type: String,
    //    ref: 'Merchant'
    //},
    merchant: String,
    detail : {}
});

var Complaint = mongoose.model('Complaint', ComplaintSchema);